package com.example.service.Impl;

import com.example.mapper.CallingMapper;
import com.example.pojo.TeacherCalling;
import com.example.pojo.TeachingCallingDetail;
import com.example.pojo.TeachingClass;
import com.example.service.CallingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CallingServiceImpl implements CallingService {
    @Autowired
    private CallingMapper callingMapper;
    //生成
    @Override
    public void create(TeacherCalling teacherCalling) {
        callingMapper.createCalling(teacherCalling);
    }
    //编辑
    @Override
    public void update(TeacherCalling teacherCalling) {
        callingMapper.updateCalling(teacherCalling);
    }
    //查询
    @Override
    public TeacherCalling query(Integer id) {
        TeacherCalling teacherCalling = callingMapper.queryById(id);
        return teacherCalling;
    }
    //点名细节
    @Override
    public void addCallingDetail(TeachingCallingDetail teachingCallingDetail) {
        callingMapper.addCallingDetail(teachingCallingDetail);
    }
}
